<template>
  <div>
    <div>学号:{{$route.params.id}}</div>
    <div>姓名:{{$route.params.title}}</div>
  </div>
</template>

<script>
export default {
  name: "Info",
  mounted() {
    console.log(this.$router)
  },
  methods:{
    push(){
      this.$router.push({
        name:"detail",
        params:{id:1,title:2}
      })
    }
  }
}
</script>

<style scoped>

</style>
